<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="h-top" id="home">
    <div class="top-header">
        <ul class="cl-effect-16 top-nag">
                <c:choose>
                    <c:when test="${empty loginuser}">
                        <li><a href="register2.jsp" target="mainFrame">注册</a></li>
                        <li><a href="login2.jsp" target="mainFrame">登录</a></li>
                    </c:when>
                    <c:otherwise>
                        <li><a href="aboutme.jsp" target="mainFrame">欢迎&nbsp;${loginuser.username}</a></li>
                    </c:otherwise>
                </c:choose>
            <li><a href="aboutme.jsp" target="mainFrame" >关于我的</a></li>
            <li><a href="iPush.jspl" target="mainFrame" >我发表的</a></li>
            <li><a href="contact.html" target="mainFrame" >联系我们</a></li>
        </ul>
        <div class="search-box">
            <div class="b-search">
                <form>
                    <input type="text" value="Search" onfocus="this.value = '';"
                           onblur="if (this.value == '') {this.value = 'Search';}">
                    <input type="submit" value="Search">
                </form>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
</body>
</html>
